package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.bdmc.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * rt盘数据 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineRt对象", description = "rt盘数据")
public class DeviceMachineRt extends Model<DeviceMachineRt> {

  private static final long serialVersionUID = 1L;

  // "rt盘数据")
  @TableId(value = "machine_rt_id", type = IdType.AUTO)
  private Integer machineRtId;

  // "设备id")
  private Integer deviceId;

  @Excel(name ="单盘SN")
  private String diskSn;

  
  @Excel(name = "设备SN")
  @TableField(exist = false)
  private String deviceSn;

  @Excel(name = "2.5G,10G")
  private String rtType;

  // "工作模式")
  private String workMode;

  @Excel(name = "线路位置")
  private String lineLocation;

  // "模块类型")
  private String moduleType;

  // "最小功率")
  private String powerMin;

  // "最大功率")
  private String powerMax;

  // "泵浦个数")
  private Integer pumpsCount;

  // "光路级数")
  private String lightPathSeries;

  @Excel(name = "apc功率设置")
  private String apcPowerSetting;

  // "工作状态")
  private String workStatus;

  @Excel(name = "单级输入功率")
  private String inputPower;

  @Excel(name = "单级输出功率")
  private String outputPower;

  // "温度")
  private String temper;

  // "低温阈值")
  private String temperMin;

  // "高温阈值")
  private String temperMax;

  @Excel(name = "OEO输入功率")
  private String rxPower;

  @Excel(name = "泵1工作电流")
  private String pump1Current;

  @Excel(name = "泵1功率")
  private String pump1Power;

  @Excel(name = "泵1温度")
  private String pump1Temper;

  @Excel(name = "制冷电流")
  private String refdCurrent;

  // "单级输入无光告警门限")
  private String inputLightlessAlarmThreshold;

  // "单级输入低告警门限")
  private String inputLowGate;

  // "单级输入高告警门限")
  private String inputHighGate;

  // "单级输出告警门限")
  private String outputAlarmGate;

  @Excel(name = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;
  // "告警状态1")
  private String alarmState1;

  // "告警状态2")
  private String alarmState2;

  // "DDM告警")
  private String ddm;

  private Boolean intervalSave;

  private String mdTemp;
  private String txBias;
  private String txPower;
  private String mdTempThs;
  private String txBiasThs;
  private String txPowerThs;
  private String rxPowerThs;
  private String lsCtWave;

  @Override
  public Serializable pkVal() {
    return this.machineRtId;
  }

}
